<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<!-- 


    open方法：参数说明
    三个参数都可以省略 如果省略 打开的就是空白窗口
 -->

<body>
    <button id="box">打开一个新的窗口</button>
    <script>
        var btn = document.getElementById('box');
        btn.onclick = function() {
            // window.open(); //打开空白窗口
            //window.open('http://www.baidu.com');

            // window.open('OK.html');
            window.open('OK.html', 'aaa', 'width=600,height=600');
        }
    </script>
</body>

</html>